#include "DriverInfo.h"
#include <Windows.h>

DriverInfo::DriverInfo(const String& rootDir) : rootDir(rootDir)
{

}

String DriverInfo::absolutePath(const String& path) const
{
	return rootDir + path;
}

unsigned long long DriverInfo::awailableBytes() const
{
	ULARGE_INTEGER freeUser,total, totalFree;
	GetDiskFreeSpaceEx(rootDir.c_str(), &freeUser, &total, &totalFree);
	return freeUser.QuadPart;
}
